<!DOCTYPE html>
<html>

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title></title>
    <link href="/styles/base.css" rel="stylesheet" type="text/css">
    <link href="/styles/mytravelnotes.css" rel="stylesheet" type="text/css">
    <script type="text/javascript" src="/js/jquery/jquery.js"></script>
    <script type="text/javascript" src="/js/plugins/jquery-form/jquery.form.js"></script>
    <script type="text/javascript" src="/js/system/travelnotes.js"></script>
    <link href="/js/plugins/jqPaginator/jqPagination.css" rel="stylesheet" type="text/css">
    <script type="text/javascript" src="/js/plugins/jqPaginator/jq-paginator.min.js"></script>
    <script type="text/javascript" src="/js/system/common.js"></script>

    <script>
        $(function () {

            //顶：点赞
            $(".btn-thumbsupnum").click(function () {

                var tid = $(this).data("tid");
                $.get("/mine/travelThumbup", {tid:tid}, function (data) {
                    if(data.success){
                        $(".support_num_id"+tid).html(data.data.thumbsupnum);
                        popup("顶成功啦"); //

                    }else{
                        if(data.code == 102){
                            popup(data.msg);
                        }else{
                            popup("今天你已经顶过了"); //
                        }

                    }
                });
            })
        })
    </script>

</head>

<body style="position: relative;">
   <#include "../common/navbar2.ftl">
    <#assign currentNav="mytravelnotes">
    <#include "../common/main.ftl">
    <div class="main">
        <div class="center clearfix">
            <div class="side_bar note_side flt1">
                <div class="MUsers">
                    <div class="MUsersTitle">最新访客</div>
                    <div class="MUsersDetail">
                        <div class="MUsersAtom">
                            <ul class="clearfix"></ul>
                        </div>
                    </div>
                    <div class="MUsersBehavior">
                        <span>累计访问<i>${vo.viewnum!}</i></span><span>今日<i>0</i></span>
                    </div>
                </div>
            </div>
            <div class="content flt2">
                <div class="common_block my_notes">
                    <form action="/mine/mytravelnotes" method="post" id="searchForm">
                        <input type="hidden" name="currentPage" id="currentPage" value="1">

                    </form>
                    <div class="common_title clearfix">
                        <div class="MAvaMore clearfix">
                            <div class="MAvaNums">
                                <strong>${pageInfo.total}</strong>
                                <p>游记</p>
                            </div>
                            <div class="MAvaNums">
                                <strong>${vo.replynum!0}</strong>
                                <p>回复</p>
                            </div>
                            <div class="MAvaNums last">
                                <strong>${vo.viewnum!0}</strong>
                                <p>阅读</p>
                            </div>
                        </div>
                    </div>
                    <div id="article_list">
                        <div class="notes_list">
                            <ul>
                                <#list pageInfo.list as t>
                                <li data-order="1" data-top="0">
                                    <dl>
                                        <dt>
                                            <a href="/travel/detail?id=${t.id!}" target="_blank" id="_j_coverlink">
                                                <img src="${t.coverUrl}" height="400" width="680" alt="封面"></a>
                                            <div class="hover_item">

                                                <div class="thumb_description">
                                                    <strong>${t.dest.name!}/</strong>
                                                    <span>${(t.dest.parent.name)!}</span>
                                                </div>

                                            </div>
                                        </dt>
                                        <dd>
                                            <div class="note_title clearfix">
                                                <div class="MDing">
                                                    <span id="thumbsupnum" class="support_num_id${t.id!}">${t.thumbsupnum!}</span>
                                                    <a href="javascript:;" class="btn-thumbsupnum" role="button" data-japp="articleding" rel="nofollow" data-tid="${t.id!}"
                                                        data-vote="0" title="顶一下">顶</a>
                                                </div>
                                                <div class="note_info">
                                                    <h3>
                                                        <a href="/travel/detail?id=${t.id!}" target="_blank" title="title">${t.title}</a>
                                                    </h3>
                                                    <div class="note_more">

                                                        <span class="MInfoNum"><i
                                                                class="MIcoView"></i><em>${t.replynum}/${t.viewnum}</em></span>

                                                        <span class="MInfoNum"><i class="MIcoStar"></i><em>${t.favornum}</em></span>
                                                        <span class="time">${t.createTime!?string("yyyy-MM-dd HH:mm:ss")}</span>
                                                    </div>

                                                </div>
                                            </div>
                                            <div class="note_word">
                                                ${t.summary}
                                            </div>
                                        </dd>
                                    </dl>
                                </li>
                                </#list>
                            </ul>
                        </div>
                    </div>
                    <#include "../common/page.ftl">
                </div>
            </div>
        </div>
    </div>
    <#include "../common/footer.ftl"/>
    <div class="mfw-toolbar" id="_j_mfwtoolbar" style="display: block;">
        <div class="toolbar-item-top" style="display: none;">
            <a role="button" class="btn _j_gotop">
                <i class="icon_top"></i>
                <em>返回顶部</em>
            </a>
        </div>
        <div class="toolbar-item-feedback">
            <a role="button" data-japp="feedback" class="btn">
                <i class="icon_feedback"></i>
                <em>意见反馈</em>
            </a>
        </div>
        <div class="toolbar-item-code">
            <a role="button" class="btn">
                <i class="icon_code"></i>
            </a>
            <a role="button" class="mfw-code _j_code">


                <img src="https://p1-q.mafengwo.net/s1/M00/6C/51/wKgIC1t_6TuASybrAADGUPUHjr021.jpeg?imageMogr2%2Fthumbnail%2F%21450x192r%2Fgravity%2FCenter%2Fcrop%2F%21450x192%2Fquality%2F90"
                    width="450" height="192">
            </a>
            <!--<div class="wx-official-pop"><img src="http://images.mafengwo.net/images/qrcode-weixin.gif"><i class="_j_closeqrcode"></i></div>-->
        </div>

    </div>
</body>

</html>